package com.dgut.sales.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dgut.sales.bean.Details;
import com.dgut.sales.dao.DetailsDao;

@Service
public class DetailsService {
	@Autowired
	private DetailsDao dao;
	
	public Details getDetailsById(Integer id) {
		return dao.getDetailsById(id);
	}
	
	public void addDetails(Details details) {
		dao.addDetails(details);
	}

	public void deleteDetails(Integer id) {
		dao.deleteDetails(id);
	}
	public void updateMoney(Integer contractId) {
		dao.updateMoney(contractId);
	}
	
	public void updateStates(Integer id) {
		dao.updateStates(id);
	}
}
